class retail:
    sign=60
    def __init__(self,day,cr,xh):
        self.day=day
        self.cr=cr
        self.xh=xh
    def total(self):
        if self.day is 1:
            return self.sign*1.2*(self.cr+self.xh*0.5)
        else:
            return self.sign*(self.cr+self.xh*0.5)
        
